# This demonstration script creates a window with a bunch of menus
# and cascaded menus.
#
# SCCS: @(#) menu.tcl 1.7 96/04/12 11:57:35
set w .menu
catch {destroy $w}
toplevel $w
wm title $w "Menu Demonstration"
wm iconname $w "menu"
positionWindow $w
frame $w.menu -relief raised -bd 2
pack $w.menu -side top -fill x
label $w.msg -font $font -wraplength 4i -justify left -text "This window contains a collection of menus and cascaded menus. You can post a menu from the keyboard by typing Alt+x, where \"x\" is the character underlined on the menu. You can then traverse among the menus using the arrow keys. When a menu is posted, you can invoke the current entry by typing space, or you can invoke any entry by typing its underlined character. If a menu entry has an accelerator, you can invoke the entry without posting the menu just by typing the accelerator."
tk_dialog .pattern {Bitmap Menu Entry} {The menu entry you invoked displays a bitmap rather than a text string. Other than this, it is just like any other menu entry.} {} 0 OK